
process.stdin.resume();

process.stdin.setEncoding('utf8');

process.stdin.on('data', function (chunk) {
   process.stdout.write('stdin data:',chunk);
});

process.stdin.on('end', function () {
    process.stdout.write('End.');
});




/*
process.stdin.setEncoding('utf8');

process.stdin.on('readable', () => {
    var chunk = process.stdin.read();
if (chunk !== null) {
    process.stdout.write(`data: ${chunk}`);
}
});

process.stdin.on('end', () => {
    process.stdout.write('end');
});*/
